package com.project.service;


import com.project.dto.RiderDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * 骑手远程调用接口
 *
 * @author zhangyang
 * @since 2021-10-06
 */
@FeignClient(name = "RiderSys")
public interface IRiderRemoteService {
    /**
     * 远程调用骑手系统查询骑手集合
     * @return 骑手集合
     */
    @GetMapping("rider/findAllRiderInfo")
    List<RiderDto> findAllByRemote();

    @PostMapping("rider/backGetMoneyForRider/{riderCode}/{money}")
    void update(@PathVariable("riderCode") String riderCode,
                       @PathVariable("money") int money);
}
